#app {
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: $base-sidebar-width;
    position: relative;

    &:not(.hasTagsView) {
      .navbar {
        border-bottom: 1px solid #f8f8f9;
      }
    }
  }

  .sidebar-container {
    transition: width 0.28s;
    width: $base-sidebar-width !important;
    height: 100%;
    position: fixed;
    font-size: 0;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 1px 1px 10px -2px rgb(0 0 0 / 10%);

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    .el-menu-item,
    .menu-title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

    .el-menu-item .el-menu-tooltip__trigger {
      display: inline-block !important;
    }

    // menu hover
    .sub-menu-title-noDropdown,
    .el-sub-menu__title {
      &:not(.is-active):hover {
        color: $primary-color !important;

        // background-color: rgba(0, 0, 0, 0.06) !important;
        background-color: transparent !important;
      }
    }

    & .nest-menu .el-sub-menu > .el-sub-menu__title,
    & .el-sub-menu .el-menu-item {
      min-width: $base-sidebar-width !important;

      &:not(.is-active):hover {
        color: $primary-color !important;
        background-color: transparent !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: $collapsed-sidebar-width !important;
    }

    .main-container {
      margin-left: $collapsed-sidebar-width;
    }

    .sub-menu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .submenu-title-noDropdown {
      padding: 0;

      .svg-icon {
        margin-right: 0;
      }

      .el-menu-tooltip__trigger {
        text-align: center;
      }
    }

    .el-sub-menu {
      position: relative;
      overflow: hidden;

      & > .el-sub-menu__title {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;

        .svg-icon {
          margin-left: 0;
          margin-right: 0;
        }
      }
    }

    .el-menu--collapse {
      .el-sub-menu {
        & > .el-sub-menu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }

          & > i {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-sub-menu {
    min-width: $base-sidebar-width !important;
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-sub-menu > .el-sub-menu__title,
  .el-menu-item {
    &:not(.is-active):hover {
      color: $primary-color !important;
      background-color: transparent !important;
    }
  }

  > .el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    @include scroll-bar;
  }

  .el-menu--popup {
    min-width: 150px !important;
  }

  .el-menu-item {
    color: $text-content-color !important;
    font-size: 14px !important;

    height: $tooltip-menu-item-height !important;
    line-height: $tooltip-menu-item-height !important;

    &.is-active {
      background-color: $menu-hover-color !important;
      color: $primary-color !important;
    }

    .submenu-node {
      padding-left: 0 !important;
    }
  }
}
